package com.aiti.lulian.service.impl;

import com.aiti.lulian.dto.ShowCardBannerDto;
import com.aiti.lulian.entity.ShowCardBanner;
import com.aiti.lulian.mapper.ShowCardBannerMapper;
import com.aiti.lulian.service.ShowCardBannerService;
import com.aiti.lulian.vo.ShowCardBannerVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 工信门户首页 服务实现类
 * </p>
 *
 * @author 
 * @since 2025-06-18
 */
@Service
public class ShowCardBannerServiceImpl extends ServiceImpl<ShowCardBannerMapper, ShowCardBanner> implements ShowCardBannerService {

    @Override
    public List<ShowCardBannerVo> bannerList(Page page, ShowCardBannerDto dto) {

        return this.getBaseMapper().bannerList(page, dto);
    }

    @Override
    public ShowCardBannerVo latestBanner(ShowCardBannerDto dto) {
        return this.getBaseMapper().latestBanner(dto);
    }
}
